package com.itheima.edu.info.manage.entry;

import com.itheima.edu.info.manage.controller.studentController;
import com.itheima.edu.info.manage.controller.teacherController;

import java.util.Scanner;

public class InfomanageEntry {
    public static void main(String[] args) {
        while (true) {
            Scanner sc = new Scanner(System.in);
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    studentController studentcl = new studentController();
                    studentcl.start();
                    break;
                case "2":
                    teacherController teachercl1 = new teacherController();
                    teachercl1.start();
                    break;
                case "3":
                    System.exit(0);
                    break;
                default:
                    System.out.println("您的输入有误，请重新输入");
                    break;
            }
        }

    }
}
